export default {
  data() {
    return {
      //设置默认的分享参数
      share: {
        title: '律师',
        path: '/pages/index/index',
        imageUrl: '/static/logo.png',
        desc: '',
        content: ''
      },
      $imgUrl: ''
    }
  },
  onShareAppMessage(res) {
    if (res.from === 'button') {
      // 来自页面内分享按钮
      console.log(res.target)
    }
    return { ...this.share }
  },
  onShareTimeline(res) {
    return {
      title: '律师',
      type: 0,
      summary: ''
    }
  }
}
